<template>
  <div class="m-index">
    <div class="banner">
        <van-swipe :autoplay="3000">
          <van-swipe-item v-for="(image, index) in images" :key="index">
            <img v-lazy="image"  class="img-banner" />
          </van-swipe-item>
        </van-swipe>
    </div>
    <div class="m-index-nav">
      <div class="index-nav-list" v-for="(item, index) in navList" :key="index">
        <img v-lazy="item.imgUrl">
        <div class="index-nav-title">{{ item.title }}</div>
       </div>
    </div>
    <div class="m-index-notice">
      <van-notice-bar left-icon="index-notice-o" :scrollable="false" class="index-notice">
        <van-swipe
          class="notice-swipe"
          vertical
          :autoplay="3000"
          :show-indicators="false"
        >
          <van-swipe-item>
            <div class="index-notice-swiper">
              <div class="index-notice-title">飞游创意产业园盛大招商中,欢迎...</div>
              <div class="index-notice-more">更多</div>
            </div>
          </van-swipe-item>
          <van-swipe-item>
            <div class="index-notice-swiper">
              <div class="index-notice-title">飞游创意产业园盛大招商中,欢迎...</div>
              <div class="index-notice-more">更多</div>
            </div>
          </van-swipe-item>
          <van-swipe-item>
            <div class="index-notice-swiper">
              <div class="index-notice-title">飞游创意产业园盛大招商中,欢迎...</div>
              <div class="index-notice-more">更多</div>
            </div>
          </van-swipe-item>
        </van-swipe>
      </van-notice-bar>
    </div>
    <div class="m-index-news">
      <div class="index-news-top">
         <div class="news-trends">园区动态</div>
         <div class="news-more">查看更多<van-icon name="arrow" /></div>
      </div>
      <div class="index-news">
        <div class="index-news-list">
          <img v-lazy="images[0]">
          <div class="index-news-content">
            <div class="index-news-title">区人大常委会视察文化和金融合作示范区创建工作座谈会</div>
            <div class="index-news-bottom">
              <div class="index-news-label">党建园地</div>
              <div class="index-news-label">360浏览</div>
            </div>
          </div>
        </div>
        <div class="index-news-list">
          <img v-lazy="images[0]">
          <div class="index-news-content">
            <div class="index-news-title">区人大常委会视察文化和金融合作示范区创建工作座谈会</div>
            <div class="index-news-bottom">
              <div class="index-news-label">党建园地</div>
              <div class="index-news-label">360浏览</div>
            </div>
          </div>
        </div>
        <div class="index-news-list">
          <img v-lazy="images[0]">
          <div class="index-news-content">
            <div class="index-news-title">区人大常委会视察文化和金融合作示范区创建工作座谈会</div>
            <div class="index-news-bottom">
              <div class="index-news-label">党建园地</div>
              <div class="index-news-label">360浏览</div>
            </div>
          </div>
        </div>
        <div class="index-news-list">
          <img v-lazy="images[0]">
          <div class="index-news-content">
            <div class="index-news-title">区人大常委会视察文化和金融合作示范区创建工作座谈会</div>
            <div class="index-news-bottom">
              <div class="index-news-label">党建园地</div>
              <div class="index-news-label">360浏览</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <Footer />
  </div>
</template>
<script>
  import Header from '@/components/Header';
  import Footer from '@/components/Footer';
  export default {
    name: 'Index',
    components:{
      Header,
      Footer
    },
    data(){
      return {
        images: [
          require('@/assets/images/index/banner/pic_one.png'),
          require('@/assets/images/index/banner/pic_two.png'),
          require('@/assets/images/index/banner/pic_three.png'),
        ],
        navList: [
          {
            'imgUrl': require('@/assets/images/index/nav/icon_nav.png'),
            'title': '园区导航'
          },
          {
            'imgUrl': require('@/assets/images/index/nav/icon_merchants.png'),
            'title': '在线招商'
          },
          {
            'imgUrl': require('@/assets/images/index/nav/icon_people.png'),
            'title': '访客邀请'
          },
          {
            'imgUrl': require('@/assets/images/index/nav/icon_repair.png'),
            'title': '在线报修'
          }
        ]
      }
    },
    created() {

    },
    methods:{

    }

  }
</script>

<style lang="scss">
  .m-index {
    width: 686px;
    margin: 0 auto;
    .banner{
      width: 100%;
      height: 324px;
      margin-bottom: 34px;
      .img-banner{
        width: 100%;
        height: 324px;
      }
    }
    .m-index-nav {
      display: flex;
      justify-content: space-around;
      text-align: center;
      .index-nav-list{
        .index-nav-title{
          font-size: 26px;
          font-weight: 400;
          color: #222222;
        }
        img{
          width: 74px;
          height: 74px;
        }
      }
    }
    .m-index-notice {
      margin-top: 44px;
      .van-icon-index-notice-o{
        background: url(../../assets/images/index/notice/hpme_notice.png) no-repeat;
        width: 58px;
        height: 28px;
        background-size: cover;
        margin-right: 10px;
      }
      .index-notice {
        border: 1px solid #EBEFF4;
        border-radius: 8px;
        background: none;
        font-size: 26px;
        font-weight: 400;
        color: #222222;
        height: 66px;
      }
      .notice-swipe {
        height: 66px;
        line-height: 66px;
        width: 100%;
      }
      .index-notice-swiper {
        display: flex;
        justify-content: space-between;
      }
      .index-notice-more {
        width: 46px;
        height: 23px;
        font-size: 24px;
        font-weight: 400;
        color: #1F75F0;
      }
    }
    .m-index-news {
       margin-top: 42px;
      .index-news-top{
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
        .news-trends {
          width: 128px;
          font-size: 32px;
          font-weight: bold;
          color: #222222;
        }
        .news-more{
          font-size: 24px;
          font-weight: 500;
          color: #999999;
        }
      }
      .index-news-list {
        display: flex;
        justify-content: space-between;
        margin-bottom: 42px;
        img{
          width: 200px;
          height: 136px;
          border-radius: 8px;
        }
        .index-news-content {
          align-self: center;
          .index-news-title {
            width: 445px;
            height: 66px;
            font-size: 28px;
            font-weight: 400;
            color: #222222;
            line-height: 39px;
            margin-bottom: 30px;
          }
          .index-news-bottom {
            display: flex;
            justify-content: space-between;
            .index-news-label{
              font-size: 24px;
              font-weight: 400;
              color: #999999;
              line-height: 39px;
            }
          }
        }
      }
    }
  }

</style>
